package com.graduation.springbootinit.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.graduation.springbootinit.model.entity.ActivityPart.OutfitChallenge;

public interface OutfitChallengeService extends IService<OutfitChallenge> {
    
    /**
     * 创建挑战
     */
    void createChallenge(OutfitChallenge challenge);
    
    /**
     * 更新挑战
     */
    void updateChallenge(OutfitChallenge challenge);
    
    /**
     * 获取进行中的挑战
     */
    Page<OutfitChallenge> getOngoingChallenges(int pageNum, int pageSize);
    
    /**
     * 获取已结束的挑战
     */
    Page<OutfitChallenge> getEndedChallenges(int pageNum, int pageSize);
    
    /**
     * 结束挑战并发放奖励
     */
    void endChallengeAndReward(Long challengeId);
} 